﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Del1C" x:Class="Del1C.MainWindow"
        Title="Деинсталятор 1С" Height="350" Width="525" Icon="main.ico" Loaded="Window_Loaded_1">
    <Window.Resources>
        <local:StateToFontWeightsConverter x:Key="StateToFontWeightsConverter"/>
        <DataTemplate x:Key="myItem">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="25"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <CheckBox IsChecked="{Binding IsChecked}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                <StackPanel Grid.Row="1" Grid.Column="1">
                    <TextBlock Text="{Binding Name}" FontSize="16" FontWeight="{Binding State, Converter={StaticResource StateToFontWeightsConverter}}"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Версия: " FontSize="11" FontStyle="Italic" FontWeight="{Binding State, Converter={StaticResource StateToFontWeightsConverter}}"/>
                        <TextBlock Text="{Binding Version}" Margin="0,0,0,5" FontStyle="Italic" FontSize="11" FontWeight="{Binding State, Converter={StaticResource StateToFontWeightsConverter}}"/>
                    </StackPanel>
                </StackPanel>
                <!--<Button Content="Del" Tag="{Binding Index}"  Click="Button_Click_1"/>-->
            </Grid>
        </DataTemplate>
    </Window.Resources>
    <Window.TaskbarItemInfo>
        <TaskbarItemInfo/>
    </Window.TaskbarItemInfo>
    <Grid><TextBlock TextWrapping="Wrap" Text="Получение списка установленных версий..." HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" Foreground="#FF9C9C9C"/>
        <ListView x:Name="list" ItemTemplate="{StaticResource myItem}" Margin="0,0,0,43"> <!--Visibility="Hidden">-->
            
        </ListView>
        <Button x:Name="btnGet" Content="Get" Margin="0,0,483,10" Click="btnGet_Click" HorizontalAlignment="Right" Width="24" Height="22" VerticalAlignment="Bottom" Visibility="Collapsed"/>
        <Button x:Name="btnUninstall" Content="Uninstall" Margin="0,0,10,10" Click="btnUninstall_Click" HorizontalAlignment="Right" Width="75" Height="22" VerticalAlignment="Bottom"/>
    </Grid>
</Window>
